package com.example.mall.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum StatusCodeEnum {

    COMMON_UNKNOWN(10001, "公共服务-未知异常"),

    COUPON_UNKNOWN(20001, "优惠券服务-未知异常"),

    GATEWAY_UNKNOWN(30001, "网关服务-未知异常"),

    MEMBER_UNKNOWN(40001, "会员服务-未知异常"),

    ORDER_UNKNOWN(50001, "订单服务-未知异常"),

    PRODUCT_UNKNOWN(60001, "产品服务-未知异常"),
    PRODUCT_PARAM_VALID_ERROR(60002, "[product] 参数校验失败！"),

    WARE_UNKNOWN(70001, "库存服务-未知异常"),

    THIRD_PARTY_UNKNOWN(80001, "第三方服务-未知异常"),
    ;

    /** 状态编码 */
    private final Integer status;

    /** 状态描述 */
    private final String description;
}
